/**
 * title: 注册
 */
import React from 'react';
import RegisterForm from './components/RegisterForm';
import withRouter from 'umi/withRouter';
import Link from 'umi/link';
import LoginWrapper from '@/components/LoginWrapper';
const { Welcome } = LoginWrapper;

const Register = ({ history }) => {
  return (
    <div>
      <div className="toggle-page-actions-wrapper">
        <Link to="/login">登录</Link>
        <span>注册</span>
      </div>
      <LoginWrapper partLeft={<Welcome />} partRight={<RegisterForm history={history} />} />
    </div>
  );
};
export default withRouter(Register);
